<extend name="Public:base" />
<block name="body">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 main-body">
		<ul>
		
			<li>
				<a href="__MODULE__/MemberPublic/help" class="btn btn-primary">
					配置帮助教程
				</a>
			</li>
			<li>
				<a href="__MODULE__/MemberPublic/lists" class="btn btn-primary">
					公众号管理
				</a>
			</li>
			<li class="m_p" style="float:left;"><span class="glyphicon glyphicon-th"></span>公众号管理</li>
		</ul>
	</div>
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid public_list">
		<div class="text-danger bg-danger col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid public_list info">
			您目前最多可自己创建5个公众号（不包括管理员分配的公众号）。如需要更多名额请需要管理员在后台设置
		</div>
		<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 public_list_menu">
			<ul>
				<li>
					<a href="__MODULE__/MemberPublic/public_add" class="btn btn-primary">
						新增
					</a>
				</li>
				<li>
					<a href="" onclick="delete_memberpublic()" class="btn btn-primary">
						删除
					</a>
				</li>
			</ul>
		</div>
		<div class="table-responsive">
			<form>
				<table class="table-bordered table table-hover">
					<tr>
						<td>
						<input type="checkbox" name="checkbox[]" class="check-all regular-checkbox" onclick="selects()">
						</td>
						<td>公众号名称</td>
						<td>公众号原始id</td>
						<td>公众号头像</td>
						<td>Token</td>
						<td>操作</td>
					</tr>
					<volist name="MemberPublic_list" id="MP_list">
					<tr>
						<td>
						<input type="checkbox" name="checkbox[]" value="{$MP_list.public_id}" class="check-all regular-checkbox">
						</td>
						<td>{$MP_list.public_name}</td>
						<td>{$MP_list.public_id}</td>
						<td><img src="__PUBLIC__{$MP_list.headface_url}" class="img-circle headface" alt="Responsive image"></td>
						<td>{$MP_list.token}</td>
						<td>
						<a href="__MODULE__/MemberPublic/edit?id={$MP_list.id}">编辑</a>&nbsp;&nbsp;
						<a href="__MODULE__/MemberPublic/delete_public_member?public_id={$MP_list.public_id}">删除 </a>&nbsp;&nbsp;
						<a href="__MODULE__/MemberPublic/nowpub?id={$MP_list.id}">切换为当前公众号</a>&nbsp;&nbsp;
						<a href="__MODULE__/MemberPublic/help?public_id={$MP_list.public_id}">接口配置</a>
						</td>
					</tr>
					</volist>
				</table>
			</form>
		</div>
	</div>
</block>